//package com.huwei.data.impl;
//
//import org.springframework.stereotype.Component;
//
//import com.huwei.data.manager.Filter;
//import com.huwei.entity.UserAccount;
//
//import lombok.extern.slf4j.Slf4j;
//
///**
// * 熔断处理
// * @author huwei
// */
//@Slf4j
//@Filter
//@Component
//public class AuthenticationDataSourceFusing implements AuthenticationRPCDataSource{
//
//	@Override
//	public UserAccount findByUsername(String username) {
//		log.info("authentication data source rpc service is unavailable");
//		throw new RuntimeException("The service is unavailable, please try again later");
//	}
//
//	@Override
//	public UserAccount findById(long id) {
//		log.info("authentication data source rpc service is unavailable");
//		throw new RuntimeException("The service is unavailable, please try again later");
//	}
//
//	@Override
//	public UserAccount save(UserAccount user) {
//		log.info("authentication data source rpc service is unavailable");
//		throw new RuntimeException("The service is unavailable, please try again later");
//	}
//
//	@Override
//	public UserAccount findByPhone(String phone) {
//		log.info("authentication data source rpc service is unavailable");
//		throw new RuntimeException("The service is unavailable, please try again later");
//	}
//
//	@Override
//	public Integer update(UserAccount user) {
//		log.info("authentication data source rpc service is unavailable");
//		throw new RuntimeException("The service is unavailable, please try again later");
//	}
//
//}
